.material-choice-tree-container {
  padding: 0.625rem;
  border: 1px solid $gray-light;

  .choice-tree-actions {
    margin-bottom: 10px;
    border-bottom: 0.063rem solid $gray-light;
  }

  ul.choice-tree {
    padding: 0;
    margin: 0;

    li {
      list-style: none;
      background: no-repeat 0 3px;
      background-size: 12px 12px;

      .checkbox,
      .radio {
        padding-top: 0;
        padding-left: 20px;
      }

      .checkbox {
        i.md-checkbox-control {
          // make material checkbox smaller
          &::before {
            width: 16px;
            height: 16px;
            margin-top: 3px;
          }
        }

        input[type="checkbox"] {
          &:checked,
          &:indeterminate {
            + i.md-checkbox-control {
              &::after {
                // make material checkmark smaller
                top: 5px;
                left: 3px;
                width: 11px;
                height: 7px;
              }
            }
          }
        }
      }

      ul {
        padding-left: 1rem;
      }
    }

    .collapsed,
    .expanded {
      position: relative;
      background: none;

      > .checkbox,
      > .radio {
        cursor: pointer;

        &::before {
          position: absolute;
          top: -0.25rem;
          left: -0.1rem;
          font-family: var(--#{$cdk}font-family-material-icons);
          font-size: 1.25rem;
          color: $gray-medium;
          cursor: pointer;
        }
      }
    }

    .expanded {
      > .checkbox,
      > .radio {
        &::before {
          content: "\E313";
        }
      }
    }

    .collapsed {
      // hide inner tree when item is collapsed
      > ul {
        display: none;
      }

      > .checkbox,
      > .radio {
        &::before {
          content: "\E5CC";
        }
      }
    }
  }
}
